package com.kingzoon.seckill.entity;

import java.util.ArrayList;
import java.util.List;

public class AclMenuTipExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public AclMenuTipExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andExchangeIdIsNull() {
            addCriterion("EXCHANGE_ID is null");
            return (Criteria) this;
        }

        public Criteria andExchangeIdIsNotNull() {
            addCriterion("EXCHANGE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andExchangeIdEqualTo(String value) {
            addCriterion("EXCHANGE_ID =", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdNotEqualTo(String value) {
            addCriterion("EXCHANGE_ID <>", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdGreaterThan(String value) {
            addCriterion("EXCHANGE_ID >", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdGreaterThanOrEqualTo(String value) {
            addCriterion("EXCHANGE_ID >=", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdLessThan(String value) {
            addCriterion("EXCHANGE_ID <", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdLessThanOrEqualTo(String value) {
            addCriterion("EXCHANGE_ID <=", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdLike(String value) {
            addCriterion("EXCHANGE_ID like", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdNotLike(String value) {
            addCriterion("EXCHANGE_ID not like", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdIn(List<String> values) {
            addCriterion("EXCHANGE_ID in", values, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdNotIn(List<String> values) {
            addCriterion("EXCHANGE_ID not in", values, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdBetween(String value1, String value2) {
            addCriterion("EXCHANGE_ID between", value1, value2, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdNotBetween(String value1, String value2) {
            addCriterion("EXCHANGE_ID not between", value1, value2, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdIsNull() {
            addCriterion("DISTRIBUTOR_ID is null");
            return (Criteria) this;
        }

        public Criteria andDistributorIdIsNotNull() {
            addCriterion("DISTRIBUTOR_ID is not null");
            return (Criteria) this;
        }

        public Criteria andDistributorIdEqualTo(String value) {
            addCriterion("DISTRIBUTOR_ID =", value, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdNotEqualTo(String value) {
            addCriterion("DISTRIBUTOR_ID <>", value, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdGreaterThan(String value) {
            addCriterion("DISTRIBUTOR_ID >", value, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdGreaterThanOrEqualTo(String value) {
            addCriterion("DISTRIBUTOR_ID >=", value, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdLessThan(String value) {
            addCriterion("DISTRIBUTOR_ID <", value, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdLessThanOrEqualTo(String value) {
            addCriterion("DISTRIBUTOR_ID <=", value, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdLike(String value) {
            addCriterion("DISTRIBUTOR_ID like", value, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdNotLike(String value) {
            addCriterion("DISTRIBUTOR_ID not like", value, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdIn(List<String> values) {
            addCriterion("DISTRIBUTOR_ID in", values, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdNotIn(List<String> values) {
            addCriterion("DISTRIBUTOR_ID not in", values, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdBetween(String value1, String value2) {
            addCriterion("DISTRIBUTOR_ID between", value1, value2, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdNotBetween(String value1, String value2) {
            addCriterion("DISTRIBUTOR_ID not between", value1, value2, "distributorId");
            return (Criteria) this;
        }

        public Criteria andTipIdIsNull() {
            addCriterion("TIP_ID is null");
            return (Criteria) this;
        }

        public Criteria andTipIdIsNotNull() {
            addCriterion("TIP_ID is not null");
            return (Criteria) this;
        }

        public Criteria andTipIdEqualTo(String value) {
            addCriterion("TIP_ID =", value, "tipId");
            return (Criteria) this;
        }

        public Criteria andTipIdNotEqualTo(String value) {
            addCriterion("TIP_ID <>", value, "tipId");
            return (Criteria) this;
        }

        public Criteria andTipIdGreaterThan(String value) {
            addCriterion("TIP_ID >", value, "tipId");
            return (Criteria) this;
        }

        public Criteria andTipIdGreaterThanOrEqualTo(String value) {
            addCriterion("TIP_ID >=", value, "tipId");
            return (Criteria) this;
        }

        public Criteria andTipIdLessThan(String value) {
            addCriterion("TIP_ID <", value, "tipId");
            return (Criteria) this;
        }

        public Criteria andTipIdLessThanOrEqualTo(String value) {
            addCriterion("TIP_ID <=", value, "tipId");
            return (Criteria) this;
        }

        public Criteria andTipIdLike(String value) {
            addCriterion("TIP_ID like", value, "tipId");
            return (Criteria) this;
        }

        public Criteria andTipIdNotLike(String value) {
            addCriterion("TIP_ID not like", value, "tipId");
            return (Criteria) this;
        }

        public Criteria andTipIdIn(List<String> values) {
            addCriterion("TIP_ID in", values, "tipId");
            return (Criteria) this;
        }

        public Criteria andTipIdNotIn(List<String> values) {
            addCriterion("TIP_ID not in", values, "tipId");
            return (Criteria) this;
        }

        public Criteria andTipIdBetween(String value1, String value2) {
            addCriterion("TIP_ID between", value1, value2, "tipId");
            return (Criteria) this;
        }

        public Criteria andTipIdNotBetween(String value1, String value2) {
            addCriterion("TIP_ID not between", value1, value2, "tipId");
            return (Criteria) this;
        }

        public Criteria andMenuIdIsNull() {
            addCriterion("MENU_ID is null");
            return (Criteria) this;
        }

        public Criteria andMenuIdIsNotNull() {
            addCriterion("MENU_ID is not null");
            return (Criteria) this;
        }

        public Criteria andMenuIdEqualTo(String value) {
            addCriterion("MENU_ID =", value, "menuId");
            return (Criteria) this;
        }

        public Criteria andMenuIdNotEqualTo(String value) {
            addCriterion("MENU_ID <>", value, "menuId");
            return (Criteria) this;
        }

        public Criteria andMenuIdGreaterThan(String value) {
            addCriterion("MENU_ID >", value, "menuId");
            return (Criteria) this;
        }

        public Criteria andMenuIdGreaterThanOrEqualTo(String value) {
            addCriterion("MENU_ID >=", value, "menuId");
            return (Criteria) this;
        }

        public Criteria andMenuIdLessThan(String value) {
            addCriterion("MENU_ID <", value, "menuId");
            return (Criteria) this;
        }

        public Criteria andMenuIdLessThanOrEqualTo(String value) {
            addCriterion("MENU_ID <=", value, "menuId");
            return (Criteria) this;
        }

        public Criteria andMenuIdLike(String value) {
            addCriterion("MENU_ID like", value, "menuId");
            return (Criteria) this;
        }

        public Criteria andMenuIdNotLike(String value) {
            addCriterion("MENU_ID not like", value, "menuId");
            return (Criteria) this;
        }

        public Criteria andMenuIdIn(List<String> values) {
            addCriterion("MENU_ID in", values, "menuId");
            return (Criteria) this;
        }

        public Criteria andMenuIdNotIn(List<String> values) {
            addCriterion("MENU_ID not in", values, "menuId");
            return (Criteria) this;
        }

        public Criteria andMenuIdBetween(String value1, String value2) {
            addCriterion("MENU_ID between", value1, value2, "menuId");
            return (Criteria) this;
        }

        public Criteria andMenuIdNotBetween(String value1, String value2) {
            addCriterion("MENU_ID not between", value1, value2, "menuId");
            return (Criteria) this;
        }

        public Criteria andTabNoIsNull() {
            addCriterion("TAB_NO is null");
            return (Criteria) this;
        }

        public Criteria andTabNoIsNotNull() {
            addCriterion("TAB_NO is not null");
            return (Criteria) this;
        }

        public Criteria andTabNoEqualTo(String value) {
            addCriterion("TAB_NO =", value, "tabNo");
            return (Criteria) this;
        }

        public Criteria andTabNoNotEqualTo(String value) {
            addCriterion("TAB_NO <>", value, "tabNo");
            return (Criteria) this;
        }

        public Criteria andTabNoGreaterThan(String value) {
            addCriterion("TAB_NO >", value, "tabNo");
            return (Criteria) this;
        }

        public Criteria andTabNoGreaterThanOrEqualTo(String value) {
            addCriterion("TAB_NO >=", value, "tabNo");
            return (Criteria) this;
        }

        public Criteria andTabNoLessThan(String value) {
            addCriterion("TAB_NO <", value, "tabNo");
            return (Criteria) this;
        }

        public Criteria andTabNoLessThanOrEqualTo(String value) {
            addCriterion("TAB_NO <=", value, "tabNo");
            return (Criteria) this;
        }

        public Criteria andTabNoLike(String value) {
            addCriterion("TAB_NO like", value, "tabNo");
            return (Criteria) this;
        }

        public Criteria andTabNoNotLike(String value) {
            addCriterion("TAB_NO not like", value, "tabNo");
            return (Criteria) this;
        }

        public Criteria andTabNoIn(List<String> values) {
            addCriterion("TAB_NO in", values, "tabNo");
            return (Criteria) this;
        }

        public Criteria andTabNoNotIn(List<String> values) {
            addCriterion("TAB_NO not in", values, "tabNo");
            return (Criteria) this;
        }

        public Criteria andTabNoBetween(String value1, String value2) {
            addCriterion("TAB_NO between", value1, value2, "tabNo");
            return (Criteria) this;
        }

        public Criteria andTabNoNotBetween(String value1, String value2) {
            addCriterion("TAB_NO not between", value1, value2, "tabNo");
            return (Criteria) this;
        }

        public Criteria andTipContentIsNull() {
            addCriterion("TIP_CONTENT is null");
            return (Criteria) this;
        }

        public Criteria andTipContentIsNotNull() {
            addCriterion("TIP_CONTENT is not null");
            return (Criteria) this;
        }

        public Criteria andTipContentEqualTo(String value) {
            addCriterion("TIP_CONTENT =", value, "tipContent");
            return (Criteria) this;
        }

        public Criteria andTipContentNotEqualTo(String value) {
            addCriterion("TIP_CONTENT <>", value, "tipContent");
            return (Criteria) this;
        }

        public Criteria andTipContentGreaterThan(String value) {
            addCriterion("TIP_CONTENT >", value, "tipContent");
            return (Criteria) this;
        }

        public Criteria andTipContentGreaterThanOrEqualTo(String value) {
            addCriterion("TIP_CONTENT >=", value, "tipContent");
            return (Criteria) this;
        }

        public Criteria andTipContentLessThan(String value) {
            addCriterion("TIP_CONTENT <", value, "tipContent");
            return (Criteria) this;
        }

        public Criteria andTipContentLessThanOrEqualTo(String value) {
            addCriterion("TIP_CONTENT <=", value, "tipContent");
            return (Criteria) this;
        }

        public Criteria andTipContentLike(String value) {
            addCriterion("TIP_CONTENT like", value, "tipContent");
            return (Criteria) this;
        }

        public Criteria andTipContentNotLike(String value) {
            addCriterion("TIP_CONTENT not like", value, "tipContent");
            return (Criteria) this;
        }

        public Criteria andTipContentIn(List<String> values) {
            addCriterion("TIP_CONTENT in", values, "tipContent");
            return (Criteria) this;
        }

        public Criteria andTipContentNotIn(List<String> values) {
            addCriterion("TIP_CONTENT not in", values, "tipContent");
            return (Criteria) this;
        }

        public Criteria andTipContentBetween(String value1, String value2) {
            addCriterion("TIP_CONTENT between", value1, value2, "tipContent");
            return (Criteria) this;
        }

        public Criteria andTipContentNotBetween(String value1, String value2) {
            addCriterion("TIP_CONTENT not between", value1, value2, "tipContent");
            return (Criteria) this;
        }

        public Criteria andTipCommentIsNull() {
            addCriterion("TIP_COMMENT is null");
            return (Criteria) this;
        }

        public Criteria andTipCommentIsNotNull() {
            addCriterion("TIP_COMMENT is not null");
            return (Criteria) this;
        }

        public Criteria andTipCommentEqualTo(String value) {
            addCriterion("TIP_COMMENT =", value, "tipComment");
            return (Criteria) this;
        }

        public Criteria andTipCommentNotEqualTo(String value) {
            addCriterion("TIP_COMMENT <>", value, "tipComment");
            return (Criteria) this;
        }

        public Criteria andTipCommentGreaterThan(String value) {
            addCriterion("TIP_COMMENT >", value, "tipComment");
            return (Criteria) this;
        }

        public Criteria andTipCommentGreaterThanOrEqualTo(String value) {
            addCriterion("TIP_COMMENT >=", value, "tipComment");
            return (Criteria) this;
        }

        public Criteria andTipCommentLessThan(String value) {
            addCriterion("TIP_COMMENT <", value, "tipComment");
            return (Criteria) this;
        }

        public Criteria andTipCommentLessThanOrEqualTo(String value) {
            addCriterion("TIP_COMMENT <=", value, "tipComment");
            return (Criteria) this;
        }

        public Criteria andTipCommentLike(String value) {
            addCriterion("TIP_COMMENT like", value, "tipComment");
            return (Criteria) this;
        }

        public Criteria andTipCommentNotLike(String value) {
            addCriterion("TIP_COMMENT not like", value, "tipComment");
            return (Criteria) this;
        }

        public Criteria andTipCommentIn(List<String> values) {
            addCriterion("TIP_COMMENT in", values, "tipComment");
            return (Criteria) this;
        }

        public Criteria andTipCommentNotIn(List<String> values) {
            addCriterion("TIP_COMMENT not in", values, "tipComment");
            return (Criteria) this;
        }

        public Criteria andTipCommentBetween(String value1, String value2) {
            addCriterion("TIP_COMMENT between", value1, value2, "tipComment");
            return (Criteria) this;
        }

        public Criteria andTipCommentNotBetween(String value1, String value2) {
            addCriterion("TIP_COMMENT not between", value1, value2, "tipComment");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}